import random
print("猜数字游戏")
number = random.randint(1, 100)
while True :

    user_num = int(input('请输入一个随机数:'))
    if user_num >number:
        print("您猜大了")
    elif user_num < number:
        print("您猜小了")
    else:
        print("猜对了")
        break


